package SQLAPI;

/**
 * An object that contains all of the information associated with the Transaction_detail
 * table in the database. 
 * @author Scott Catsirelis - 000602705
 */
public class TransactionDetail {
    
    String objName,attribName,prev,newValue;
    int transid;
    /**
     * Constructor for the TransactionDetail object.
     * @param transid - int - Transaction ID associated with the specific TransactionDetail object.
     * @param objName - String - The name of the Object in the LDAP that was modified.
     * @param attribName - String - The name of the attribute that was modified.
     * @param prev - String - The previous value of the attribute.
     * @param newValue - String - the New value of the attribute.
     */
    public TransactionDetail(int transid, String objName, String attribName, String prev, String newValue) {
        this.transid = transid;
        this.objName = objName;
        this.attribName = attribName;
        this.prev = prev;
        this.newValue = newValue;
    }

    public Integer getTransid() {
        return transid;
    }

    public void setTransid(int transid) {
        this.transid = transid;
    }

    public String getObjName() {
        return objName;
    }

    public void setObjName(String objName) {
        this.objName = objName;
    }

    public String getAttribName() {
        return attribName;
    }

    public void setAttribName(String attribName) {
        this.attribName = attribName;
    }

    public String getPrev() {
        return prev;
    }

    public void setPrev(String prev) {
        this.prev = prev;
    }

    public String getNewValue() {
        return newValue;
    }

    public void setNewValue(String newValue) {
        this.newValue = newValue;
    }   
}